
"""
    传递逻辑，而不是数据
"""

def test_function(compute):
    return compute(12.5, 8)

def my_add(x, y):
    return x+y

def my_multiply(x, y):
    return x*y

print(test_function(my_multiply), test_function(my_add))
